package mylittleinvestigations.EasingFunctions;

public class LinearStepEase extends EasingFunction
{
    private int numSteps;
    
    public LinearStepEase(double startValue, double endValue, int msDuration, int numSteps)
    {
        super(startValue, endValue, msDuration);
        
        this.numSteps = numSteps;
    }

    protected double GetNormalizedValue(double normalizedTime)
    {
        return Math.floor(this.numSteps * normalizedTime) / this.numSteps;
    }
}
